import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "你不知道的JavaScript",
  base: "/",

  description: "A VitePress Site",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [{ text: "主页", link: "/" }],

    sidebar: [
      {
        text: "目录",
        items: [
          { text: "起步上路", link: "/up&going/" },
          { text: "作用域与闭包", link: "/scope&closures/" },
          { text: "this 与对象原型", link: "/this&objectprototypes/" },
          { text: "类型与文法", link: "/types&grammar/" },
          { text: "异步与性能", link: "/async&performance/" },
          { text: "ES6 与未来", link: "/es6&beyond/" },
        ],
      },
    ],
    socialLinks: [{ icon: "github", link: "https://gitee.com/JIAXInT/you-dont-know-js" }],
  },
  ignoreDeadLinks: true,
});
